#pragma once

#include <d3d10.h>
#include "EngineObject.h"
#include "EnginePointer.h"

class ModelVertexBuffer : public EngineObject
{
public:
	ModelVertexBuffer(BYTE* vertexData, UINT64 numVertices, UINT64 sizeBytes, UINT64 strideBytes);
	~ModelVertexBuffer(void);

	HRESULT LoadGraphicsContent(EnginePointer<ID3D10Device> pDevice);
	void UnloadGraphicsContent();
	EnginePointer<ID3D10Buffer> getBuffer();
	UINT64 getStride();
	AUTO_SIZE;
private:
	UINT64 numVertices;
    UINT64 sizeBytes;
    UINT64 strideBytes;
	BYTE* vertexData;

	EnginePointer<ID3D10Buffer> pVertexBuffer;
};
